<include file="./Tpl/Admin/header.html" />
<div class="main">
	<div class="main_title">
		<img src="/Public/Admin/images/book1.gif"/>&nbsp;&nbsp;买卖控制开关
	</div>

	<div class="main_body">
		<form action="?s=Admin/Hg/update" method="post">
		<table cellspacing=0 cellpadding=0 border=0>
		<tr><td>买  入</td><td>当前状态：</td><td><input type="checkbox" class="id" name="BuyFlag" value="30"></td></tr>
		<tr><td>卖  出</td><td>当前状态：</td><td><input type="checkbox" class="id" name="SaleFlag" value="30"></td></tr>
		</table>
		<div><input type="submit" value="提交"/></div>
		</form>
    </div>

</div>
<include file="./Tpl/Admin/footer.html" />
<script language="javascript" src="/Public/plugin/kindeditor/jquery.tools.min.js"></script>
<script language="javascript">
$(document).ready(function(){
    $('#all').click(function(){
	    $('.id').attr('checked',true);
	});
	$('#all_return').click(function(){
	    $('.id').attr('checked',false);
	});
    $('#dels').click(function(){

		f = 0;
	    $('.id').each(function(){
		    if($(this).attr('checked')) f = 1;
		});
		
        if(f==0){
		    alert('请选择要删除的项！');
		}else{
		    $('#formid').submit();
		}
	});
	$('#add').click(function(){
	    location.href="?s=Admin/Hg/add";
	});
});
</script>